Random Tests

Version 2.0

By Gregor N. Purdy

Copyright (C) 1991, 1992 Contemporary Design Studios. All rights reserved.
____________________

Included in the Random distribution are four test programs. A quick description of each is included below.

TestArchive

This program exercises the Random classes by putting each RandomEngine subclass through the following test: Generate 1000 random percentages; archive to a file; generate and save in an array 1000 more; read the engine back in from the file; generate 1000 more random percentages and compare them to those saved in the array.

TestDieRoller

This program exercises the Random classes by making them generate a number of 20-sided-die rolls , and prints a summary of the results. It only uses the ElkinsEngine.

TestGaussian

This program exercises the Random classes by making them generate a number of gaussian variables, and graphs a (textual) histogram of the results.

TestPercent

This program exercises the Random classes by making them generate a number of percentages (values between 0.0 and 1.0, inclusive), and graphs a (textual) histogram of the results.

____________________